import requests
from bs4 import BeautifulSoup

headers={
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"
}
for start_num in range(0,250,25):
    response = requests.get(f"https://book.douban.com/tag/%E7%BC%96%E7%A8%8B?start=0&type=T?start={start_num}",headers=headers)
    soup = BeautifulSoup(response.text,"html.parser")
    all_titles= soup.find_all("a")
    for title in all_titles:
            print(title)